﻿
Partial Class WebForm_Logout
    Inherits System.Web.UI.Page


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.Logout()
        End If
    End Sub
End Class

Partial Class WebForm_Logout
    Private Sub Logout()
        'clsAuth.ClearOrganizationAuth()
        'clsAuth.ClearProgramAuth()

        Session.Abandon()
        FormsAuthentication.SignOut()

        'Response.Redirect("http://esp.tpc.gov.tw/AGLogout")
        Response.Redirect(FormsAuthentication.LoginUrl)
    End Sub
End Class
